package com.atguigu.springcloud.controller;

import com.atguigu.springcloud.service.PaymentService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author timiv
 */
@RestController
@Slf4j
public class PaymentController {

    @Autowired
    private PaymentService paymentService;
    @GetMapping("/consumer/payment/port")
    public String getPort(){
        return paymentService.getPort();
    };

    @GetMapping("/consumer/payment/feign/ok")
    public String getFeignOk(){
        return paymentService.feignTimeOut();
    }
}
